package com.fept.msgcore.msgserver.protocol.model.base;

/**
 * Created by Srma on 1/13/2017.
 */
public class ProtocolConstants {

    /**
     * option constants
     */
    public static final int OPTION_NOP = 0x0000;
    public static final int OPTION_ANSWER = 0x0001;
    public static final int OPTION_SIGN = 0x0002;
    public static final int OPTION_ENCRYPT = 0x0003;

    /**
     * body constants
     */
    public static final int BODY_NOP = 0x0000;
    public static final int BODY_SESSION = 0x0001;
    public static final int BODY_EVENT = 0x0002;
    public static final int BODY_SETTING = 0x0003;
    public static final int BODY_COMMAND = 0x0004;
    public static final int BODY_DATA = 0x0005;

    /**
     * 应答选项常量
     */
    public static final int ANSWER_OPTION_OK = 0x00;
    public static final int ANSWER_OPTION_TIME_ERROR = 0x01;
    public static final int ANSWER_OPTION_FORMAT_ERROR = 0x02;
    public static final int ANSWER_OPTION_SIGN_ERROR = 0x03;
    public static final int ANSWER_OPTION_ENCRYPT_ERROR = 0x04;

}
